from iot.models import Gradation
from dvadmin.utils.serializers import CustomModelSerializer
from dvadmin.utils.viewset import CustomModelViewSet


class GradationModelSerializer(CustomModelSerializer):
    class Meta:
        model = Gradation
        fields = '__all__'


class GradationModelViewSet(CustomModelViewSet):
    queryset = Gradation.objects.all()
    serializer_class = GradationModelSerializer
